'use strict'

module.exports = appInfo => {
  const config = exports = {}

  // MongoDB 数据库
  config.mongoose = {
    url: 'mongodb://127.0.0.1/wivwiv-egg',
    options: {
      useNewUrlParser: true,
      useCreateIndex: true,
    },
  }

  config.redis = {
    client: {
      port: 6379,
      host: '127.0.0.1',
      password: '',
      db: 0,
    },
  }
  // 微信小程序支付 https://www.npmjs.com/package/weixinpay
  config.weixinpay = {
    // pfx: fs.readFileSync('xxx/xxx/apiclient_cert.p12'),可选，退款需要
    appid: '',
    openid: '',
    mch_id: '',
    partner_key: '',
  }

  return config
}
